#pragma once
#ifdef HAVE_VAMP_LIBRARY
#include <atlsafe.h>
#include "FirstAmp.h"
#pragma comment(lib, "FirstAmp.lib")
#endif
#include "definitions.h"

class VAmpLib
{
public:
	VAmpLib();
	~VAmpLib();
#ifdef HAVE_VAMP_LIBRARY
	int CheckDevice(void);
	int VAmpConnect(t_faDataMode mode);
	int VAmpStart(void);
	int VAmpStop (void);
	int VAmpClose (void);
	void SetData(int StartMode, bool FastMode);
	int GetInfo (void);
	void* GetData(void);
	bool isOpen,Run;
private:
	void ResetVar(void);
	bool esci;
	int StartMode;
	int DataMode;
	int ChannelMode;
	
	char *pBuffer;
	int MaxBufSize;

public:
	int	DeviceId;
	int Channels,EEGChannels, AUXChannels;

	t_faInformation DeviceInfo;
	t_faProperty DeviceProp;
	t_faDataModeSettings *Settings;

	t_faDataModel16 *Buffer16;
	t_faDataModel8 *Buffer8;
	t_faDataFormatMode20kHz *Buffer20k;
	unsigned int *Impedance;
#endif

};
